<?php
namespace haibao\cms\model\data;
class PageControl extends Base{
	/**
	 * 正常
	 */
	const STATUS_ENABLE = 1;
	/**
	 * 删除
	 */
	const STATUS_DISABLE = 0;
	
	/**
	 * 参数类型:文本
	 */
	const PARAMETER_TYPE_TEXT = 1;
	/**
	 * 参数类型:图片
	 */
	const PARAMETER_TYPE_IMG = 2;
	
	public $CategoryId;
	public $ControlName;
	public $Controller;
	public $Parameter;
	public $Status;
	public $Content;
	public $CreateBy;
	public $CreateTime;
	public $RecordMaximum;
	public $ManualData;
	public $SiteId;
	
	public $Category;
	public $Site;
	public $ControlPath;
	
	public function __construct(){
		parent::__construct();
		$this->intField('CategoryId', 'CategoryId',true);
		$this->stringField('ControlName', 'ControlName',true);
		$this->stringField('Controller', 'Controller',true);
		$this->stringField('Content','Content',true);
		$this->stringField('Parameter','Parameter',true);
		$this->intField('Status','Status',true);
		$this->intField('CreateBy', 'CreateBy',true);
		$this->dateField('CreateTime', 'CreateTime',true);
		$this->intField('RecordMaximum', 'RecordMaximum',true);
		$this->intField('ManualData','ManualData',true);
		$this->intField('SiteId', 'SiteId',true);
		$this->stringField('ControlPath', 'ControlPath');
		$this->setTableName('PageControl');
	}
}